<?php if (!defined('THINK_PATH')) exit();?><!DOCPYTE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="/fuhuaqi/statistics/Public/css/bootstrap.min.css">
		<link rel="stylesheet" href="/fuhuaqi/statistics/Public/css/tablemake.css">

	</head>
<body>
	
	<div class="tabs">
		<div class="table-one">
			<div class="tabel-select-left">
				<span style="font-size:20px;">二级分销商团队成员</span>
			</div>
			<div class="table-select">

				
				<div class="form-right">
					
					<form class="form-inline">
						<div class="form-group">
							<label><span class="glyphicon glyphicon-search" aria-hidden="true"></span></label>
						    <input id="content" type="text" class="form-control" id="" placeholder="请输入搜索内容">
						</div>
				  		<button id="btnClick" type="submit" class="btn btn-primary">搜索</button>
					</form>
				</div>
			</div>	
		</div>
		<div class="table-show">
		<table class="table table-striped table-bordered">
 			<thead class="table-thead">
 				
     <th>所属的一级经销商id</th>
     <th>二级经销商id</th>
     <th>二级经销商</th>
				
 			</thead>
			<tbody class="table-tbody">
     <tr>
     <?php if(is_array($data)): foreach($data as $k=>$vo): ?><td><?php echo ($vo["parent_id"]); ?>  </td>
     <td><?php echo ($vo["user_id"]); ?> </td>
     <td><?php echo ($vo["user_name"]); ?> </td>
     </tr><?php endforeach; endif; ?>
				
				
			</tbody>
		</table>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(function(){
			
			//表单提交
			$("#btnClick").on("click",formOnSubmit);
			$("#checkboxAll").on("click",checkboxAll)
			function formOnSubmit(){
				//获取被选中的值
				var $select1 = $("#select1 option:selected").val();
				var $select2 = $("#select2 option:selected").val();
				var $select3 = $("#select3 option:selected").val();
				var $content = $("#content").val();
				console.log($select1+$select2+$select3+$content);
				alert($select1+$select2+$select3+$content);
			/*	$.ajax({})*/
			}
			//全选操作
			function checkboxAll(){
				var flag = $("[name=contrlId]:checkbox").is(':checked');

				if (flag) {
					$("[name=productId]:checkbox").attr("checked",true);
				} else{
					$("[name=productId]:checkbox").attr("checked",false);
				};
			}
		})
	</script>
</body>
</html>

<!-- <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
    二级分销商共有：..
         <table>
     <tr>
     <th>所属的一级经销商名称</th>
     <th>二级经销商id</th>
     <th>二级经销商</th>
     </tr>
     
     <tr>
     <?php if(is_array($data)): foreach($data as $k=>$vo): ?><td><?php echo ($vo["parent_id"]); ?>  </td>
     <td><?php echo ($vo["user_id"]); ?> </td>
     <td><?php echo ($vo["user_name"]); ?> </td>
     </tr><?php endforeach; endif; ?>
     </table>
</body>
</html> -->